package com.ruoyi.db.sms.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 推荐专题对象 sms_topic
 *
 * @author yfy
 * @date 2020-04-20
 */

@ApiModel("推荐专题实体类")
@Data
@EqualsAndHashCode(callSuper=true)
public class SmsTopic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("专题ID")
    private Long id;

    @ApiModelProperty("专题标题")
    @Excel(name = "专题标题")
    @NotBlank(message = "专题标题不能为空")
    @Size(min = 0, max = 255, message = "专题标题长度不能超过255个字符")
    private String title;

    @ApiModelProperty("专题子标题")
    @Excel(name = "专题子标题")
    @Size(min = 0, max = 255, message = "专题子标题长度不能超过255个字符")
    private String subtitle;

    @ApiModelProperty("专题内容(富文本格式)")
    private String content;

    @ApiModelProperty("专题相关商品最低价")
    @Excel(name = "专题相关商品最低价")
    private Double price;

    @ApiModelProperty("专题阅读量")
    @Excel(name = "专题阅读量")
    @Size(min = 0, max = 255, message = "专题阅读量长度不能超过255个字符")
    private String readCount;

    @ApiModelProperty("专题图片")
    @Excel(name = "专题图片")
    @Size(min = 0, max = 255, message = "专题图片长度不能超过255个字符")
    private String picUrl;

    @ApiModelProperty("排序")
    private Long sortOrder;

    @ApiModelProperty("专题相关商品")
    @Size(min = 0, max = 1023, message = "专题图片长度不能超过1023个字符")
    private String goods;

    @ApiModelProperty("创建时间")
    private Date addTime;

    @ApiModelProperty("逻辑删除")
    private Integer deleted;
}
